< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03090103.xhp

(section: iif) (bookmark: bm_id3155420)
IIf statement

IIf ステートメント

IIf Statement [Runtime]
IIf ステートメント [実行時](hd_id3155420.1)

Returns one of two possible function results, depending on the logical value of the evaluated expression.
与えられた表式を評価して得られる論理値に基づいて、2 つある選択肢の 1 つを結果として返します。(par_id3145610.2)

(/section: iif)

Syntax:
構文:(hd_id3159413.3)

IIf (Expression, ExpressionTrue, ExpressionFalse)
IIf (Expression, ExpressionTrue, ExpressionFalse)(par_id3147560.4)

Parameters:
パラメータ:(hd_id3150541.5)

Expression: Any expression that you want to evaluate. If the expression evaluates to True, the function returns the result of ExpressionTrue, otherwise it returns the result of ExpressionFalse.
Expression: 評価の対象とする表式。表式の評価結果が True となった場合は ExpressionTrue を返し、それ以外の場合は ExpressionFalse を返します。(par_id3153381.6)

ExpressionTrue, ExpressionFalse: Any expression, one of which will be returned as the function result, depending on the logical evaluation.
ExpressionTrue, ExpressionFalse: 論理判定の結果として返す表式。2 つある表式の 1 つを、判定結果に応じて返します。(par_id3150870.7)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)


< Prev / Next >